package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("文章公告创建参数")
public class LegalArticleCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "title参数缺失")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "文章内容")
    private String content;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value = "1公告 2文章")
    private Integer type;

    @NotNull(message = "mainPic参数缺失")
    @ApiModelProperty(value = "文章主图")
    private String mainPic;

    @NotNull(message = "mainPicThumb参数缺失")
    @ApiModelProperty(value = "文章主图缩略图")
    private String mainPicThumb;

    @NotNull(message = "deletedAt参数缺失")
    @ApiModelProperty(value = "删除时间")
    private Date deletedAt;

    @NotNull(message = "createdBy参数缺失")
    @ApiModelProperty(value = "创建人")
    private Long createdBy;

    @NotNull(message = "createdAt参数缺失")
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @NotNull(message = "isShow参数缺失")
    @ApiModelProperty(value = "是否展示")
    private Integer isShow;

    @NotNull(message = "sort参数缺失")
    @ApiModelProperty(value = "")
    private Long sort;

    @NotNull(message = "desc参数缺失")
    @ApiModelProperty(value = "内容概述")
    private String desc;

}
